package org.dromara.components.sysRegion.domain.vo;

import org.dromara.components.sysRegion.domain.SysRegion;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 省市区街道信息视图对象 sys_region
 *
 * @author wdm
 * @date 2024-02-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysRegion.class)
public class SysRegionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 父级ID
     */
    @ExcelProperty(value = "父级ID")
    private Long parentId;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * 类型（1-省，2-市，3-区，4-街道）
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_region_type")
    private Long type;

    /**
     * 是否有子节点（true-有，false-无）
     */
    private Boolean hasChildren;


}
